/**
 * 字典表设置
 */

import React from 'react';
import { PageHeaderWrapper } from '@ant-design/pro-components';
import { Card } from 'antd';
import { connect } from 'umi';
import styles from '../Welcome.less';

const Dictionary = ({}) => {
  // 自定义面包屑
  const breadRoutes = {
    routes: [
      {
        path: '/settings',
        breadcrumbName: '系统设置',
      },
      {
        path: '/dictionary',
        breadcrumbName: '字典表设置',
      },
    ],
    itemRender: (route) => <span>{route.breadcrumbName}</span>,
    separator: '>',
  };

  return (
    <PageHeaderWrapper breadcrumb={breadRoutes}>
      <Card className={styles.content}>子应用字典表设置页面</Card>
    </PageHeaderWrapper>
  );
};

export default connect(({}) => ({}))(Dictionary);
